#!/bin/bash

set -e # exit on error
set -x # echo commands

if  [[ ! -z "${TRAVIS_TAG}" ]]; then
    echo
    echo "SKIPPING BUILD STAGE INSTALL --- This is a build for release tag ${TRAVIS_TAG}"
    echo
    exit 0
fi

# do the base install
bash scripts/ci/install

# install build time dependencies
BUILD_DEPS=`python scripts/deps.py build`
conda install -n testenv --yes --quiet ${BUILD_DEPS}

npm install -g npm

# install NPM dependencies
pushd bokehjs
npm install --no-save --no-progress
popd
